obj-y += net/ dev/
obj-y += version.o utils.o bitmap.o bitops.o kfifo.o printk.o cJSON.o
obj-y += linux-syscalls.o object.o device.o chn.o evtloop.o netcore.o softtimer.o \
         async.o thread.o threadpool.o coroutines.o fsm.o sczip.o \
         fs.o fs-poll.o
obj-y += board.o

# dependencies on generated files need to be listed explicitly
$(obj)/version.o: include/generated/compile.h

# compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always.
# mkcompile_h will make sure to only update the
# actual file if its content has changed.
define filechk_compile.h
	echo \#define UTS_VERSION \"$(shell date '+%Y%m%d%H%M%S')\"
endef

include/generated/compile.h: FORCE
	$(call filechk,compile.h)